/*
 * grid.h
 *
 *  Created on: Nov 4, 2013
 *      Author: kenreurison
 */

#ifndef GRID_H_
#define GRID_H_

#include <iostream>
#include <stdlib.h>     /* srand, rand */
#include <time.h>       /* time */
#include "celula.h"

using namespace std;

class grid {
	private:
		//Number of cells have to be least than 1024 rows and 1024 columns
		int numLinhas;
		int numColunas;
		celula cell[1024][1024];
	public:
		grid(int,int);
		void gridAleatorio();
		celula getCell(int,int);
		int getCellType(int i, int j);
		int numVivosAt(int i, int j);
		int** numVivos();
		void showVivos();
		void showGrid();
		virtual ~grid();
};

#endif /* GRID_H_ */
